package com.ynny.task04;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class Zy {
    public static void main(String[] args) {
        ArrayList<Map<String,Object>> objects = new ArrayList<>();

        HashMap<String, Object> hashmap = new HashMap<>();
        hashmap.put("name","张三");
        hashmap.put("id",66);
        hashmap.put("age",33);
        objects.add(hashmap);

        HashMap<String, Object>  hashmap1 = new HashMap<>();
        hashmap1.put("name","王五");
        hashmap1.put("id",55);
        hashmap1.put("age",22);
        objects.add(hashmap1);

        for (Map<String,Object> map:objects) {
            System.out.println(map);

        }
    }
}

